#include <stdio.h>
void function1 (int a, int b, double r, double s, int *c, double *t);
void main (void)
{
    int i=5, j=6, k;
    double x=10.6, y=22.3, z;

    printf ("i = %d \n\r j = %d \n\r x = %lf \n\r y = %lf \n\n",
                                           i, j, x, y);

    function1 (i, j, x, y, &k, &z);

    printf("k = %d \n\r z = %lf \n\n", k, z);
   printf("Address of k = %p\n\r Address of z = %p \n",&k, &z);
}
void function1 (int a, int b, double r, double s, int *c, double *t)
{
    *c = a + b;
    *t = r + s + (*c);
    printf (" *c = %d \n\r *t = %lf \n\n", *c, *t );
    printf (" Value contained in c = %p\n\
          \r Value contained in t = %p\n\n", c, t);
}
